//
//  YZIMAssitantViewModel.m
//  VET
//
//  Created by YZ on 2018/7/11.
//  Copyright © 2018年 YZ. All rights reserved.
//

#import "YZIMAssitantViewModel.h"

@implementation YZIMAssitantViewModel

@synthesize dataSource = _dataSource;

- (instancetype)init
{
    if(self = [super init]){
        [self config];
    }
    return self;
}

- (void)config
{
    YZIMAssitantWelcomeModel *welcomeModel = [YZIMAssitantWelcomeModel new];
    welcomeModel.date = @"4月4日";
    welcomeModel.title = @"亲爱的小猪";
    welcomeModel.content = @"很多类是抽象类，比如NSOperation，finshed excuting 等属性对外是只读，但是自身并没有实现setter方法，当子类继承NSOperation时，内部需要动态修改该属性，则需要将其变为可写。";
    welcomeModel.signture = @"小影";
    
    YZIMAssitantContentModel *contetnModel = [YZIMAssitantContentModel new];
    contetnModel.date = @"10:40";
    contetnModel.title = @"需要将其变为可写";
    contetnModel.img = @"plus_Last";
    
    _dataSource = @[@[welcomeModel,contetnModel]];
}
@end
